package com.sailmi.common.secure.user;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 *  用户驱动配置类
 */

@Configuration
@EnableConfigurationProperties(UserProviderProperties.class)
@ConfigurationProperties(prefix = "ucs.userprovider")
public class UserProviderProperties {
	String providerType;  //用户类型类型    0 数据库   1 micro service ;具体见UserProviderConstants
	String providerName;  //用户提供者名字
	String providerDriver;	  //用户提供者驱动类，IUserClient的实现类
	String providerUrl;   //连接的URL，其它参数请以&k=v方式连接在?后，如果是数据库，则为数据库的地址，如果为微服务，则为微服务地址

	public String getProviderType() {
		return providerType;
	}

	public void setProviderType(String providerType) {
		this.providerType = providerType;
	}

	public String getProviderName() {
		return providerName;
	}

	public void setProviderName(String providerName) {
		this.providerName = providerName;
	}

	public String getProviderDriver() {
		return providerDriver;
	}

	public void setProviderDriver(String providerDriver) {
		this.providerDriver = providerDriver;
	}

	public String getProviderUrl() {
		return providerUrl;
	}

	public void setProviderUrl(String providerUrl) {
		this.providerUrl = providerUrl;
	}
}
